package Myoopextends.a02super02;

public class Test {
    public static void main(String[] args) {
        zi zi = new zi();
        zi.show();
    }
}

class Fu{
    String name = "Fu";
    String hobby = "喝茶";

}


class zi extends Fu {
    String name = "zi";
    String game = "吃鸡";

    public void show(){
        //如何打印zi
        System.out.println(name);
        System.out.println(this.name);
        //如何打印fu
        System.out.println(super.name);
        //如何打印喝茶
        System.out.println(hobby);
        //如何打印吃鸡
        System.out.println(game);
    }
}
